package com.ywu.third.exec.standard.data;

import com.ywu.third.exec.standard.entity.YwuThirdExecVersionEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface YwuThirdExecVersionRepository {

    void insertVersionInfo(@Param("model") YwuThirdExecVersionEntity insertEntity);

    List<YwuThirdExecVersionEntity> queryDraftListByResourceIds(@Param("list") List<String> resourceIds);

    YwuThirdExecVersionEntity getEntity(@Param("model") YwuThirdExecVersionEntity search);

    void updateVersionInfo(@Param("model") YwuThirdExecVersionEntity queryRes);

    List<YwuThirdExecVersionEntity> queryVersionList(@Param("model") YwuThirdExecVersionEntity ywuThirdExecVersionEntity);

    void deleteByIdAndVersion(@Param("model") YwuThirdExecVersionEntity ywuThirdExecVersionEntity);

    void deleteExecVersionsByResourceId(@Param("model")  YwuThirdExecVersionEntity ywuThirdExecVersionEntity);
}
